<?php
/**
 * FckEditor控件
 *
 * @param string $name
 * @param array $attribs
 * @return string
 */
function _ctlFckeditor($name,$attribs) {
    $data = FLEA_WebControls::extractAttribs($attribs, array('value','toolbar','height'));
    FLEA_WebControls::mergeAttribs($attribs);
	$_value = $data['value']?$data['value']:'';
	$_toolbar = $data['toolbar']?$data['toolbar']:'Default';
	$_height = $data['height']?$data['height']:200;
   	$sBasePath = './editor/fckeditor';
   	return '<input type="hidden" id="'.$name.'" name="'.$name.'" value="'.$_value.'" style="display:none" /><input type="hidden" id="'.$name.'___Config" value="" style="display:none" /><iframe id="'.$name.'___Frame" src="'.$sBasePath.'/editor/fckeditor.html?InstanceName='.$name.'&amp;Toolbar='.$_toolbar.'" width="100%" height="'.$_height.'" frameborder="0" scrolling="no"></iframe>';
}